<template>
	<view class="cardPaySuccess">
		<n-loading></n-loading>
		<view v-if="cardInfo">
			<!-- 支付成功 -->
			<view class="paySuccessBox">
				<view class="paySuccess">
					<image src="../../static/img/paySuccess.svg"></image>
					<text>酒卡已生成！</text>
				</view>
				<view class="goldCoinTip">
					<view class="integralTip">
						<view class="label">购物返金币</view>
						<text>恭喜获得1200金币</text>
					</view>
					<!-- 操作 -->
					<view class="handleBtn">
						<view class="btn" @tap="seeOrderInfo">查看订单</view>
						<view class="btn btn1" @tap="anotherOne(cardInfo.goods_id)">继续购物</view>
					</view>
				</view>
			</view>
			
			<view class="payEdInfo">
				<view class="payEdInfoLine"></view>
				<view class="payEdInfoCont">
					<view class="payEdInfoShadow"></view>
					<view class="infoContBox">
						
						<view class="cardMan">
							<view class="tit">{{cardInfo.liquor_card_name+cardInfo.liquor_card_tag}}</view>
							<view class="btn" @tap="cardManage">
								酒卡管理<u-icon name="arrow-right" color="#999" size="24"></u-icon>
							</view>
						</view>
						
						<view class="goodsCont">
							<dh-image class="niccImg" :src="cardInfo.image"
							 errorSrc="https://lovebirdopen.com/static/img/cBj/dPicture.png"></dh-image>
							<view class="goodsInfo">
								<view class="tit">
									<view class="titleft ellipsis">{{cardInfo.name}}</view>
									<text>￥{{cardInfo.price}}</text>
								</view>
								<view class="specsBox">
									<view class="specs">{{cardInfo.specs}}</view>
									<text>×{{cardInfo.num}}</text>
								</view>
							</view>
						</view>
						
						<view class="cardHandle">
							<view class="handleEach handleEach1">
								<view class="handleBox" @tap="shareGo">
									<image src="../../static/svgIcon/giveBtn.svg" mode=""></image>
									<text class="btnName1">赠送</text>
								</view>
							</view>
							<view class="handleEach handleEach2">
								<view class="handleBox" @tap="seeOrderInfo">
									<image src="../../static/img/QRcode.svg" mode=""></image>
									<text>立即提货</text>
								</view>
							</view>
						</view>
				
						<view class="useRule">
							<view class="useRuleTit" @tap="pickupStoreGo">附近门店<u-icon style="float: right;" name="arrow-right" color="#E8E8E8" size="24"></u-icon></view>
							<view class="seeDesirable">
								<view class="left">
									<view class="tit">{{storeList.name}}</view>
									<view class="tips">{{storeList.address}}</view>
								</view>
								<u-icon @click="phoneCall" name="phone" color="#333" size="32"></u-icon>
							</view>
							<view class="mapBox">
								<map style="width:100%;height:100%" :latitude="storeList.lat" :longitude="storeList.lon" :markers="curmarkers">
								</map>
							</view>
							<view class="distance" @tap="tomap">
								据您{{storeList.distance}}km<u-icon style="float: right;margin-top: 24rpx;" name="arrow-right" color="#999" size="20"></u-icon>
							</view>
						</view>
						
						<view class="infoEach"><text>支付金额：</text>￥{{cardInfo.order.pay_amount}}</view>
						<view class="infoEach"><text>订单编号：</text>{{cardInfo.order_id}}</view>
						<!-- {{getdate(orderInfo.created_at,1)}} -->
						<view class="infoEach pb34"><text>下单时间：</text>{{getdate(cardInfo.order.created_at,1)}}</view>
						<!-- <view class="seeOrderInfo">
							<view class="knowCard"><u-icon name="question-circle" color="#999" size="28"></u-icon>了解酒卡</view>
							<view class="seeOrder">查看订单<u-icon name="arrow-right" color="#333" size="24"></u-icon></view>
						</view> -->
					</view>
				</view>
			</view>
			
			<!-- 提示 -->
			<view class="payTimeTipsBox" v-if="payTimeTips">
				<view class="payTimeTips">
					<view class="tips">恭喜您获得了一张酒卡，您可在“酒卡”页面进行管理</view>
					<view class="close" @tap="closePayTimeTipsBox"><u-icon name="close" color="#7B5D34" size="22"></u-icon></view>
				</view>
			</view>
			
			<!-- 酒卡弹窗 -->
			<view class="mask" v-if="wishPopupShow"></view>
			<view class="wishPopup" v-if="wishPopupShow">
				<view class="box">
					<image class="bj1" src="https://lovebirdopen.com/static/img/cBj/bj1.png" mode=""></image>
					<view class="wishWords">恭喜您获得一张酒卡！</view>
					<image class="popCard" :src="(cardInfo.specs).indexOf('500')!=-1?'https://lovebirdopen.com/static/img/cBj/popCard500.png':'https://lovebirdopen.com/static/img/cBj/popCard125.png'" mode=""></image>
					<view class="popCardCont">
						<view class="contBox">
							<view class="worth" :class="{worth1:(cardInfo.specs).indexOf('125')!=-1}">价值￥{{cardInfo.price}}</view>
							<view class="tit ellipsis" :class="{tit1:(cardInfo.specs).indexOf('125')!=-1}">{{cardInfo.liquor_card_name+cardInfo.liquor_card_tag}}</view>
							<view class="time" :class="{time1:(cardInfo.specs).indexOf('125')!=-1}">{{getdate(cardInfo.order.created_at,1)}}</view>
							<view class="time mt56 ellipsis" :class="{time1:(cardInfo.specs).indexOf('125')!=-1}">{{cardInfo.name}}</view>
						</view>
					</view>
					<image class="bj2" src="https://lovebirdopen.com/static/img/cBj/bj2.png" mode=""></image>
					<view class="handleBox1">
						<view class="btn btn1" @tap="shareGo">
							<image src="../../static/img/share.svg" mode=""></image>
							<text class="btnName1">赠送</text>
						</view>
						<view class="btn btn2" @tap="seeOrderInfo">
							<image src="../../static/img/QRcode.svg" mode=""></image>
							<text>立即提货</text>
						</view>
					</view>
				</view>
				<view class="close" @tap="closePop">
					<image src="../../static/svgIcon/close.svg" mode=""></image>
				</view>
			</view>
			
			<!-- 分享 -->
			<u-popup v-model="shareWayShow" mode="bottom" border-radius="16">
				<view class="shareWaysBox">
					<view class="shareWays">
						<view class="shareWaysEach">
							<button class="shareFriendsBtn" open-type="share" :plain="true" @click="cancelShare">
								<view class="shareWaysEachIcon">
									<u-icon name="weixin-fill" color="#2DC100" size="48"></u-icon>
								</view>
								<view class="tit">微信好友分享</view>
							</button>
						</view>
						<view class="shareWaysEach" @tap="generateGo">
							<view class="shareWaysEachIcon">
								<u-icon name="photo-fill" color="#666666" size="48"></u-icon>
							</view>
							<view class="tit">生成海报</view>
						</view>
					</view>
					<!-- 取消 -->
					<view class="cancel" @tap="cancelShare">取消</view>
				</view>
			</u-popup>
			<u-popup v-model="painterShow" mode="bottom" border-radius="16">
				<view class="goodsPainter">
					<image :src="posterPath" mode="" v-if="posterPath!=''"></image>
				</view>
				<view class="savePainter">
					<view class="saveBtn" @tap="savePoster">保存图片</view>
				</view>
			</u-popup>
			
			<view class="painterCans">
				<lime-painter :board="cardPosterNew" v-if="isGenerate==1" :isRenderImage="true" @success="posterPath = $event" @fail=""></lime-painter>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 手机机型
				modelmes:null,
				isIphoneX:false,
				cardInfo:null,
				cardId:null,
				lat:0,
				lon:0,
				storeList:null,
				curmarkers:null,
				wishPopupShow:true,
				// 分享
				giveCardId:'',
				giveCardImg:'',
				giveCardName:'',
				giveCardVal:'',
				shareWayShow: false,
				painterShow: false,
				invitationCode:'',
				isGenerate:0,
				cardPosterNew:{
					width: "750rpx",
					height: "1100rpx",
					background: "",
					views: [
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cardPosterNewBj1.png",
							css: {
								width: "750rpx",
								height: "1100rpx",
								left: "0rpx",
								top: "0rpx",
								mode: "center",
								radius: ''
							}
						},
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cardPosterNewBj2.png",
							css: {
								width: "640rpx",
								height: "826rpx",
								background:'transparent',
								left: "56rpx",
								top: "136rpx",
								mode: "center",
								radius: ''
							}
						},
						{//2用户头像
							type: "image",
							url: "",
							css: {
								width: "48rpx",
								height: "48rpx",
								left: "124rpx",
								top: "224rpx",
								mode: "center",
								radius: '50%'
							}
						},
						{//3用户名称
							type: 'text',
							text: '',
							css: {
								width: '440rpx',
								maxLines: 1,
								color: '#7B5D34',
								left: '188rpx',
								top: '224rpx',
								fontSize: '32rpx',
								lineHeight: '48rpx',
								textAlign: 'left'
							}
						},
						{//4酒卡
							type: "image",
							url: "",
							css: {
								width: "524rpx",
								height: "300rpx",
								background:'transparent',
								left: "114rpx",
								top: "300rpx",
								mode: "center",
								radius: ''
							}
						},
						{//5酒卡名称及类型
							type: 'text',
							text: '',
							css: {
								width: '295rpx',
								maxLines: 1,
								color: '',
								left: '154rpx',
								top: '340rpx',
								fontSize: '36rpx',
								lineHeight: '52rpx'
								// textAlign: 'center'
							}
						},
						{//6时间
							type: 'text',
							text: '',
							css: {
								width: '288rpx',
								maxLines: 1,
								color: '',
								left: '154rpx',
								top: '392rpx',
								fontSize: '24rpx',
								lineHeight: '40rpx'
								// textAlign: 'center'
							}
						},
						{//7商品名称
							type: 'text',
							text: '',
							css: {
								width: '320rpx',
								maxLines: 1,
								color: '',
								left: '154rpx',
								top: '488rpx',
								fontSize: '24rpx',
								lineHeight: '40rpx'
								// textAlign: 'center'
							}
						},
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cardPosterNewBj3.png",
							css: {
								width: "640rpx",
								height: "290rpx",
								background:'transparent',
								left: "56rpx",
								top: "674rpx",
								mode: "center"
							}
						},
						{//9小程序码
							type: "image",
							url: "",
							css: {
								width: "160rpx",
								height: "160rpx",
								left: "296rpx",
								top: "730rpx",
								mode: "center",
								radius: '50%'
							}
						},
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cd1.png",
							css: {
								width: "162rpx",
								height: "172rpx",
								background:'transparent',
								left: "20rpx",
								top: "112rpx",
								mode: "center"
							}
						},
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cd1.png",
							css: {
								width: "194rpx",
								height: "244rpx",
								background:'transparent',
								left: "558rpx",
								top: "808rpx",
								mode: "center"
							}
						}
					]
				},
				cardPoster: {
					width: "640rpx",
					height: "1028rpx",
					background: "",
					views: [
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cardBj1.png",
							css: {
								width: "640rpx",
								height: "1028rpx",
								left: "0rpx",
								top: "0rpx",
								mode: "center",
								radius: '24rpx'
							}
						},
						{
							type: 'view',
							css: {
								width: '592rpx',
								height: '622rpx',
								left: '24rpx',
								top: '224rpx',
								background: '#ffffff',
								radius: '16rpx',
							}
						},
						{
							type: "image",
							url: "https://lovebirdopen.com/static/img/poster/cardBj2.png",
							css: {
								width: "640rpx",
								height: "220rpx",
								left: "0rpx",
								top: "808rpx",
								mode: "center",
								radius: '0 0 24rpx 24rpx'
								// radius: '50%'
							}
						},
						{//3用户头像
							type: "image",
							url: "",
							css: {
								width: "112rpx",
								height: "112rpx",
								left: "264rpx",
								top: "24rpx",
								mode: "center",
								radius: '50%'
							}
						},
						{//4用户名称
							type: 'text',
							text: '',
							css: {
								width: '640rpx',
								maxLines: 1,
								color: '#7B5D34',
								left: '0rpx',
								top: '152rpx',
								fontSize: '32rpx',
								lineHeight: '48rpx',
								textAlign: 'center'
							}
						},
						{//5酒卡背景图
							type: "image",
							url: "",
							css: {
								width: "544rpx",
								height: "314rpx",
								left: "48rpx",
								top: "256rpx",
								mode: "center",
								radius: '16rpx'
							}
						},
						{//6酒卡名称
							type: 'text',
							text: '',
							css: {
								width: '200rpx',
								maxLines: 1,
								color: '',
								left: '72rpx',
								top: '280rpx',
								fontSize: '36rpx',
								lineHeight: '52rpx'
								// textAlign: 'center'
							}
						},
						{//7酒卡类型
							type: 'text',
							text: '',
							css: {
								width: '200rpx',
								maxLines: 1,
								color: '',
								left: '240rpx',
								top: '292rpx',
								fontSize: '24rpx',
								lineHeight: '40rpx'
								// textAlign: 'center'
							}
						},
						{
							type: 'view',
							css: {
								width: '544rpx',
								height: '172rpx',
								left: '48rpx',
								top: '350rpx',
								background: 'rgba(255, 255, 255, 0.2)'
							}
						},
						{//9酒的图片
							type: "image",
							url: "",
							css: {
								width: "140rpx",
								height: "140rpx",
								left: "72rpx",
								top: "366rpx",
								mode: "center",
								radius: '8rpx'
							}
						},
						{//10酒的名字
							type: 'text',
							text: '',
							css: {
								width: '200rpx',
								maxLines: 1,
								color: '#ffffff',
								left: '236rpx',
								top: '366rpx',
								fontSize: '24rpx',
								lineHeight: '40rpx'
								// textAlign: 'center'
							}
						},
						{//11酒的价格
							type: 'text',
							text: '',
							css: {
								width: '110rpx',
								maxLines: 1,
								color: '#ffffff',
								left: '450rpx',
								top: '366rpx',	
								fontSize: '24rpx',
								lineHeight: '40rpx',
								textAlign: 'right'
							}
						},
						{//12酒的规格
							type: 'text',
							text: '',
							css: {
								width: '220rpx',
								maxLines: 1,
								color: '#ffffff',
								left: '236rpx',
								top: '402rpx',
								fontSize: '24rpx',
								lineHeight: '40rpx'
								// textAlign: 'center'
							}
						},
						{//13酒的数量
							type: 'text',
							text: '',
							css: {
								width: '106rpx',
								maxLines: 1,
								color: '#ffffff',
								left: '460rpx',
								top: '402rpx',	
								fontSize: '24rpx',
								lineHeight: '40rpx',
								textAlign: 'right'
							}
						},
						{
							type: 'text',
							text: '您随时可到附近合作商铺提货',
							css: {
								width: '360rpx',
								maxLines: 1,
								color: '#ffffff',
								left: '212rpx',
								top: '462rpx',	
								fontSize: '24rpx',
								lineHeight: '40rpx',
								textAlign: 'right'
							}
						},
						{
							type: 'text',
							text: '领取酒卡后到“酒卡”查看',
							css: {
								width: '544rpx',
								maxLines: 1,
								color: '#7B5D34',
								left: '48rpx',
								top: '582rpx',	
								fontSize: '28rpx',
								lineHeight: '44rpx',
								textAlign: 'center'
							}
						},
						{//16酒的图片
							type: "image",
							url: "",
							css: {
								width: "160rpx",
								height: "160rpx",
								left: "240rpx",
								top: "634rpx",
								mode: "center"
							}
						}
					]
				},
				posterPath: '',
				// 提示
				payTimeTips:true,
			}
		},
		onLoad: function (option) {
			// 判断机型iPhone X的
			this.modelmes = uni.getStorageSync('modelmes');
			if (this.modelmes.search('iPhone X') != -1) {
			   this.isIphoneX = true;
			}
			this.cardId = option.id;
			this.getCardInfo(option.id);
			this.isGetLocation();
		},
		methods: {
			// 获取定位
			getAuthorizeInfo(a="scope.userLocation"){  //1. uniapp弹窗弹出获取授权（地理，个人微信信息等授权信息）弹窗
				var _this=this;
				uni.authorize({
					scope: a,
					success() { //1.1 允许授权
						_this.getLocationInfo();
					},
					fail(){    //1.2 拒绝授权
						console.log("你拒绝了授权，无法获得周边信息")
					}
				})
			},
			getLocationInfo(){  //2. 获取地理位置
				var _this=this;
				uni.getLocation({
					type: 'gcj02',
					success (res) {
						_this.lat = res.latitude;
						_this.lon = res.longitude;
						// _this.covers[0].latitude=_this.lat;
						// _this.covers[0].longitude=_this.lon;
						// _this.polylineVal[0].points[0].latitude=_this.lat;
						// _this.polylineVal[0].points[0].longitude=_this.lon;
						_this.getStore();
					}
				});
			},
			isGetLocation(a="scope.userLocation"){ // 3. 检查当前是否已经授权访问scope属性，参考下截图
				var _this=this;
				uni.getSetting({
					success(res) {
						if (!res.authSetting[a]) {  //3.1 每次进入程序判断当前是否获得授权，如果没有就去获得授权，如果获得授权，就直接获取当前地理位置
							_this.getAuthorizeInfo()
						}else{
							_this.getLocationInfo()
						}
					}
				});
			},
			getStore(){
				this.apiget('/shop/store-front/search-store',{lat:this.lat,lon:this.lon}).then(res =>{
					if(res.data.status == 200 ) {
						if(res.data.data.list.length>0){
							this.curmarkers = [{
								latitude: parseFloat(res.data.data.list[0].lat),
								longitude: parseFloat(res.data.data.list[0].lon),
								// title: '我是标题',//标题
								iconPath: 'https://lovebirdopen.com/static/img/loc.svg',//标记图片，不配置的话使用默认标记
								width:24,
								height:28
							}]
							this.storeList = res.data.data.list[0];
						}
					}
				})
			},
			getCardInfo(id){
				this.apiget('/mall/liquor-card/view',{id:id}).then(res =>{
					if(res.data.status == 200 ) {
						this.cardInfo = res.data.data;
					}
				})
			},
			tomap() {
				uni.openLocation({
					latitude: parseFloat(this.storeList.lat),
					longitude: parseFloat(this.storeList.lon),
					name:this.storeList.name,
					address:this.storeList.address,
					success: function () {
						console.log('success');
					}
				});
			},
			phoneCall() {
				uni.makePhoneCall({
				    phoneNumber: this.storeInfoList.phone 
				});
			},
			// 提示
			closePayTimeTipsBox(){
				this.payTimeTips = false;
			},
			// 就卡管理
			cardManage(){
				uni.reLaunch({
				    url: '../index?barCur=2'
				});
			},
			// 查看可取货门店
			pickupStoreGo(){
				uni.navigateTo({
					url: './pickupStore'
				});
			},
			seeOrderInfo(){
				uni.navigateTo({
					url: '../scanCode/liquorCardInfo?id='+this.cardId
				});
			},
			backHomeGo() {
				uni.reLaunch({
					url: '../index?barCur=0'
				});
			},
			anotherOne(id){
				uni.navigateTo({
					url: '../index/goodsInfo?id='+id
				});
			},
			// 关闭生成酒卡的弹窗
			closePop(){
				this.wishPopupShow = false;
			},
			// 取消分享
			cancelShare() {
				this.shareWayShow = false;
			},
			// 分享按钮
			shareGo() {
				this.cardPosterNew.views[4].url = (this.cardInfo.specs).indexOf('500')!=-1?'https://lovebirdopen.com/static/img/poster/cardPoster500.png':'https://lovebirdopen.com/static/img/poster/cardPoster125.png';
				this.cardPosterNew.views[5].text = this.cardInfo.liquor_cate.name+this.cardInfo.liquor_cate.description;
				this.cardPosterNew.views[5].css.color = (this.cardInfo.specs).indexOf('500')!=-1?'#EAC181':'#B97300';
				this.cardPosterNew.views[6].text = this.getdate(this.cardInfo.created_at,1);
				this.cardPosterNew.views[6].css.color = (this.cardInfo.specs).indexOf('500')!=-1?'rgba(234, 193, 129, 0.7)':'rgba(185, 115, 0, 0.7)';
				this.cardPosterNew.views[7].text = this.cardInfo.name;
				this.cardPosterNew.views[7].css.color = (this.cardInfo.specs).indexOf('500')!=-1?'rgba(234, 193, 129, 0.7)':'rgba(185, 115, 0, 0.7)';
				
				var jkColor = this.cardInfo.liquor_cate.font_color;
				this.cardPoster.views[5].url = this.cardInfo.liquor_cate.image;
				this.cardPoster.views[6].text = this.cardInfo.liquor_cate.name;
				this.cardPoster.views[6].css.color = jkColor=='yellow'?'#A6834D':(jkColor=='red'?'#F52C00':'#47525E');
				this.cardPoster.views[7].text = this.cardInfo.liquor_cate.description;
				this.cardPoster.views[7].css.color = jkColor=='yellow'?'#A6834D':(jkColor=='red'?'#F52C00':'#47525E');
				this.cardPoster.views[9].url = this.cardInfo.image;
				this.cardPoster.views[10].text = this.cardInfo.name;
				this.cardPoster.views[11].text = '￥'+this.cardInfo.price;
				this.cardPoster.views[12].text = this.cardInfo.specs;
				this.cardPoster.views[13].text = '×'+this.cardInfo.num;
				this.giveCardId = this.cardInfo.id;
				this.giveCardImg = this.cardInfo.image;
				this.giveCardName = this.cardInfo.name;
				this.apipost('/mall/liquor-card/update',{given_at:1,id:this.cardId}).then(res =>{
					if(res.data.status == 200 ) {
						this.giveCardVal = res.data.data.card;
						this.shareWayShow = true;
						this.getLogonUser();
					}
				})
			},
			getLogonUser() {
				this.apiget('/fun/member/view', {}).then(res => {
					if (res.data.status == 200) {
						this.cardPoster.views[3].url = res.data.data.avatar;
						this.cardPoster.views[4].text = '好友“'+res.data.data.nickname+'”送你一张酒卡';
						this.cardPosterNew.views[2].url = res.data.data.avatar;
						this.cardPosterNew.views[3].text = '好友“'+res.data.data.nickname+'”送你一张酒卡';
						this.invitationCode = res.data.data.invitation_code;
						// 获取小程序码
						this.gerWxCode();
					}
				})
			},
			gerWxCode(){
				var _this = this;
				this.apipost('/wxxcx/get-wx-code', {page:'pages/index',scene:'card='+this.giveCardVal+'&ref='+this.invitationCode,width:280,is_hyaline:1}).then(res => {
					if (res.data.status == 200) {
						this.cardPoster.views[16].url = res.data.data;
						this.cardPosterNew.views[9].url = res.data.data;
						this.isGenerate = 1;
					}
				})
			},
			// 生成海报
			generateGo() {
				this.showLoadGo(true);
				var _this = this;
				this.painterShow = true;
				this.shareWayShow = false;
				if(this.posterPath!=''){
					this.showLoadGo(false);
				}
			},
			savePoster() {
				var _this = this;
				uni.saveImageToPhotosAlbum({
					filePath: this.posterPath,
					success(res) {
						uni.showToast({
							title: '已保存到相册',
							icon: 'success',
							duration: 2000,
							success: function() {
								_this.painterShow = false
							}
						})
					}
				})
			},
			
		},
		onShareAppMessage(res) {
			var _this = this;
			return {
				title: _this.giveCardName,
				path: 'pages/index?card='+_this.giveCardVal+'&ref='+_this.invitationCode,
				imageUrl: _this.giveCardImg
			}
			_this.shareWayShow = false;
			if (res.from === 'button') { // 来自页面内分享按钮
				uni.showToast({
					title: '已发送',
					icon: 'success',
					duration: 2000,
					success: function() {}
				})
			}
		}
	}
</script>

<style lang="scss">
	.cardPaySuccess{
		min-height: 100%;
		padding-bottom: 130rpx;
		background-color: #F8F8FA;
	}
	
	.paySuccessBox{
		background: linear-gradient(180deg, #F3512E 19.79%, #F4752D 100%);
	}
	
	.paySuccess{
		width: 100%;
		height: 120rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
		
		image{
			width: 120rpx;
			height: 120rpx;
			margin-right: 16rpx;
		}
		
		text{
			font-size: 36rpx;
			color: #FFFFFF;
		}
	}
	
	.cardTips{
		padding-bottom: 26rpx;
		font-size: 24rpx;
		line-height: 40rpx;
		color: #fff;
		text-align: center;
		
	}
	
	.goldCoinTip{
		// height: 104rpx;
		padding: 0 32rpx 64rpx;
				
		.integralTip{
			display: flex;
			justify-content: center;
			height: 40rpx;
			box-sizing: border-box;
			
			.label{
				width: 136rpx;
				height: 40rpx;
				font-size: 24rpx;
				line-height: 40rpx;
				text-align: center;
				color: #FFFFFF;
				background: linear-gradient(264.11deg, #FF8C4B 9.33%, #F4BE6D 94.67%);
				border: 1rpx solid #FFA24B;
				box-sizing: border-box;
				border-radius: 8rpx;
			}
			
			text{
				margin-left: 24rpx;
				font-size: 24rpx;
				line-height: 40rpx;
				color: #fff;
			}
		}
	}
	
	.payEdInfo{
		padding: 0 22rpx;
		margin-top: -50rpx;
		margin-bottom: 32rpx;
		
		.payEdInfoLine{
			height: 20rpx;
			background: linear-gradient(180deg, #E93C16 0%, #F04925 100%);
			border-radius: 12rpx;
		}	
		
		.payEdInfoCont{
			position: relative;
			padding: 0 10rpx;
			margin-top: -10rpx;
		
			.payEdInfoShadow{
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 16rpx;
				background: linear-gradient(180deg, rgba(208, 27, 0, 0.2) 0%, rgba(208, 27, 0, 0) 51.04%);
			}
			
			.cardMan{
				display: flex;
				margin-bottom: 16rpx;
				line-height: 52rpx;
				
				.tit{
					flex: 1;
					width: 1px;
					font-size: 32rpx;
					font-weight: 900;
					color: #333333;
				}
				
				.btn{
					font-size: 24rpx;
					color: #666666;
				}
			}
			
			.goodsCont{
				padding: 16rpx 24rpx;
				display: flex;
				background: rgba(64, 169, 255, 0.1);
				border-radius: 16rpx;
				
				.niccImg {
					width:96rpx;
					height: 96rpx;
					margin-right: 24rpx;
					border-radius: 8rpx;
				}
				
				.goodsInfo{
					flex: auto;
					line-height: 40rpx;
					
					.tit{
						display: flex;
						margin-bottom: 16rpx;
						font-size: 24rpx;
						color: #666;
						
						.titleft{
							flex: auto;
							width: 1px;
						}
					}
					
					.specsBox{
						display: flex;
						font-size: 24rpx;
						color: #999;
						
						.specs{
							flex: auto;
						}
					}
				}
			}
			
			
			.cardHandle{
				padding: 20rpx 0;
				display: flex;
				margin-bottom: 16rpx;
				border-bottom: 1rpx dashed #F5F5F5;
				
				.handleEach{
					height: 56rpx;
					line-height: 56rpx;
					font-size: 24rpx;
					text-align: center;
					
					.handleBox{
						display: flex;
						align-items: center;
						justify-content: center;
						
						image{
							display: inline-block;
							width: 32rpx;
							height: 32rpx;
							margin-top: -4rpx;
							margin-right: 10rpx;
							vertical-align:middle
						}
					}
				}
				.handleEach1{
					width: 244rpx;
					border: 2rpx solid #FF5238;
					box-sizing: border-box;
					border-radius: 56rpx;
					color: #FF5238;
				}
				.handleEach2{
					flex: 1;
					// width: 184rpx;
					margin-left: 16rpx;
					background: linear-gradient(276.81deg, #FF5238 8.46%, #FFA360 89.67%), linear-gradient(96.27deg, #EAC181 6.37%, #A6834D 92.17%);
					border-radius: 50rpx;
					color: #FFF;
				}
			}
			
			.useRule{
				margin-bottom: 18rpx;
				background-color: #fff;
				border-radius: 16rpx;
				border-bottom: 1rpx dashed #F5F5F5;
				
				.useRuleTit{
					font-size: 32rpx;
					line-height: 56rpx;
					color: #333;
				}
				
				.seeDesirable{
					padding: 4rpx 0;
					display: flex;
					align-items: center;
					
					.left{
						flex: auto;
						
						.tit{
							font-size: 28rpx;
							line-height: 44rpx;
							color: #333;
							
							text{
								display: inline-block;
								padding: 0 16rpx;
								margin-left: 8rpx;
								font-size: 24rpx;
								line-height: 40rpx;
								color: #FF5238;
								background: rgba(255, 82, 56, 0.12);
								border-radius: 40rpx;
							}
						}
						
						.tips{
							font-size: 24rpx;
							line-height: 40rpx;
							color: #999;
						}
					}
				
				}
				
				.mapBox{
					height: 236rpx;
					background-color: #F8F8FA;
				}
					
				.distance{
					height: 64rpx;
					font-size: 24rpx;
					line-height: 64rpx;
					color: #333;
				}
			}
			
			
			.infoContBox{
				padding: 48rpx 32rpx 0;
				background: #FFFFFF;
				box-shadow: 0px 4rpx 8rpx rgba(0, 0, 0, 0.03);
				border-radius: 0px 0px 8rpx 8rpx;
				
				.infoEach{
					margin-bottom: 20rpx;
					font-size: 24rpx;
					line-height: 40rpx;
					color: #333;
					
					text{
						margin-right: 40rpx;
						color: #666666;
					}
				}
				
				.pb34{
					padding-bottom: 34rpx;
				}
				
				.seeOrderInfo{
					display: flex;
					height: 72rpx;
					font-size: 24rpx;
					line-height: 72rpx;
					border-top: 1rpx dashed #F5F5F5;
					
					.knowCard{
						width: 160rpx;
						color: #999;
						
						.u-icon{
							margin-right: 8rpx;
						}
					}
					
					.seeOrder{
						flex: 1;
						margin-left: 150rpx;
						text-align: right;
						
						.u-icon{
							margin-left: 8rpx;
						}
					}
					
				}
			}
		}
	}
	
	
	
	.payTimeTipsBox{
		padding: 0 32rpx;
		position: fixed;
		bottom: 48rpx;
		left: 0;
		width: 100%;
		
		.payTimeTips{
			display: flex;
			height: 80rpx;
			padding: 0 24rpx;
			line-height: 80rpx;
			font-size: 24rpx;
			color: #7B5D34;
			text-align: center;
			background: #FFF3DD;
			border-radius: 16rpx;
			
			.tips{
				flex: 1;
				width: 1px;
			}
			
			.close{
				width: 32rpx;
				text-align: right;
			}
		}
	}
	
	.handleBtn{
		margin-top: 24rpx;
		padding-top: 24rpx;
		text-align: center;
		border-top: 1rpx dashed rgba(255, 255, 255, 0.7);
		
		.btn{
			display: inline-block;
			height: 56rpx;
			padding: 0 32rpx;
			margin: 0 12rpx;
			line-height: 56rpx;
			font-size: 24rpx;
			color: #fff;
			border: 2rpx solid #fff;
			border-radius: 60rpx;
		}
		
		.btn1{
			background-color: #fff;
			color: #FF5238;
		}
	}
	

	.continue{
		width: 176rpx;
		height: 60rpx;
		margin: 0 auto;
		font-size: 24rpx;
		line-height: 60rpx;
		text-align: center;
		color: #FFFFFF;
		background: #FF5238;
		border-radius: 52rpx;
	}
	
	.cSuccess{
		padding: 32rpx 0;
		background-color: #fff;
		text-align: center;
		
		.cSuccessTip{
			margin-bottom: 16rpx;
			font-size: 32rpx;
			line-height: 48rpx;		
				
			text{
				margin-left: 16rpx;
				color: #FF5238;
			}
		}
		.backHome{
			display: inline-block;
			padding: 16rpx 40rpx;
			border: 2rpx solid #FF5238;
			border-radius: 30rpx;
			font-size: 24rpx;
			line-height: 28rpx;
			color: #FF5238;
		}
		.seeOrder{
			display: inline-block;
			margin-right: 32rpx;
			padding: 16rpx 40rpx;
			border: 2rpx solid #999999;
			border-radius: 30rpx;
			font-size: 24rpx;
			line-height: 28rpx;
			color: #666666;
		}
	}
	.moreRecommend{
		padding: 24rpx 32rpx;
		
		.title{
			position: relative;
			font-size: 32rpx;
			line-height: 48rpx;
			color: #333;
		}
		.shoppingList{
			display: flex;
			padding-top: 24rpx;
			align-items: center;
			flex-wrap: wrap;
			justify-content: space-between;
			flex-direction: row;
			
			.shoppingEach{
				margin-bottom: 16rpx;
				background-color: #FFFFFF;
				border-radius: 8rpx;
				overflow: hidden;
				
				image {
					display: block;
					width: 334rpx;
					height: 350rpx;
				}
				
				.iGoodsInfo{
					padding:8rpx 16rpx 12rpx;
					
					.iGoodsName{
						font-size: 24rpx;
						line-height: 40rpx;
					}
					.payers{
						margin-bottom: 18rpx;
						font-size: 24rpx;
						color: #666;
					}
					.priceInfo{
						font-weight: 600;
						font-size: 28rpx;
						line-height: 44rpx;
						color: #FF5238;
						
						text{
							font-size: 22rpx;
							color: rgba(0, 0, 0, 0.3);
							text-decoration:line-through;
						}
					}
				}
			}
		}
	}

	.mask{
		position: fixed;
		top: 0;
		left: 0;
		z-index: 9999;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.4);
	}
	
	.wishPopup{
		position: fixed;
		top: 18%;
		left: 50%;
		z-index: 10000;
		width: 646rpx;
		margin-left: -323rpx;
		
		.box{
			position: relative;
			height: 588rpx;
			// background-color: #fff;
			
			.bj1{
				position: absolute;
				top: 0;
				left: 0;
				width: 636rpx;
				height: 570rpx;
			}
			
			.wishWords{
				position: absolute;
				top: 72rpx;
				left: 154rpx;
				z-index: 1;
				font-size: 36rpx;
				line-height: 28rpx;
				color: #FFFFFF;
				text-shadow: 0px 0px 4px #E19A45;
			}
			
			.popCard{
				position: absolute;
				top: 150rpx;
				left: 66rpx;
				z-index: 2;
				width: 538rpx;
				height: 352rpx;
				border-radius: 16rpx;
				box-shadow: 0px 8rpx 16rpx 0px 0,0,0,0.08;
			}
			
			.popCardCont{
				position: absolute;
				top: 150rpx;
				left: 66rpx;
				z-index: 3;
				width: 538rpx;
				height: 352rpx;
				
				.contBox{
					width: 100%;
					height: 100%;
					position: relative;
					padding: 40rpx;
					
					.worth{
						position: absolute;
						top: 10rpx;
						right: 0;
						width: 233rpx;
						padding-left: 77rpx;
						font-size: 24rpx;
						line-height: 34rpx;
						color: #755F3C;
					}
					
					.worth1{
						color: #FFE6A6;
					}
					
					.tit{
						font-size: 32rpx;
						line-height: 52rpx;
						color: #EAC181;
					}
					
					.tit1{
						color: #B97300;
					}
					
					.time{
						width: 320rpx;
						font-size: 24rpx;
						line-height: 40rpx;
						color: rgba(234, 193, 129, 0.7);
					}
					
					.time1{
						color: rgba(185, 115, 0, 0.7);
					}
					
					.mt56{
						margin-top: 56rpx;
					}
				}
			}
			
			.bj2{
				position: absolute;
				bottom: 0;
				right: -2rpx;
				z-index: 8;
				width: 614rpx;
				height: 254rpx;
			}
			
			.handleBox1{
				position: absolute;
				bottom: 70rpx;
				left: 32rpx;
				z-index: 9;
				width: 602rpx;
				text-align: center;
				
				.btn{
					height: 56rpx;
					line-height: 56rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					
					image{
						display: inline-block;
						width: 32rpx;
						height: 32rpx;
						margin-top: -4rpx;
						margin-right: 10rpx;
						vertical-align:middle
					}
				}
				.btn1{
					display: inline-block;
					width: 144rpx;
					border: 2rpx solid #fff;
					box-sizing: border-box;
					border-radius: 56rpx;
					color: #fff;
				}
				.btn2{
					display: inline-block;
					width: 218rpx;
					margin-left: 16rpx;
					background: linear-gradient(276.81deg, #FF5238 8.46%, #FFA360 89.67%), linear-gradient(96.27deg, #EAC181 6.37%, #A6834D 92.17%);
					border-radius: 50rpx;
					color: #FFF;
					box-shadow: 0px 2px 4px rgba(255, 82, 56, 0.5);
				}
			}
		}
		
		.close{
			width: 40rpx;
			height: 40rpx;
			margin: 70rpx auto 0;
			
			image{
				width: 100%;
				height: 100%;
			}
		}
	}

	
	
	//分享方式
	.shareWaysBox {
		padding: 64rpx 32rpx;
	
		.shareWays {
			display: flex;
			padding-bottom: 60rpx;
			text-align: center;
	
			.shareWaysEach {
				flex: 1;
	
				.shareFriendsBtn {
					border: none;
				}
	
				.shareWaysEachIcon {
					display: flex;
					align-items: center;
					justify-content: center;
					height: 112rpx;
					width: 112rpx;
					margin: 0 auto;
					background: #F7F7F7;
					border-radius: 8rpx;
				}
	
				.tit {
					margin-top: 16rpx;
					font-size: 24rpx;
					line-height: 40rpx;
					color: #999999;
				}
			}
		}
	
		.cancel {
			height: 96rpx;
			font-size: 32rpx;
			line-height: 96rpx;
			text-align: center;
			color: #333;
			background: #F7F7F7;
			border-radius: 48px;
		}
	}
	
	.goodsPainter {
		width: 460rpx;
		height: 900rpx;
		padding: 112rpx 0;
		margin: 0 auto;
		
		image{
			width: 460rpx;
			height: 674rpx;
		}
	}
	
	.painterCans {
		position: fixed;
		left: -800rpx;
		width: 640rpx;
		height: 1028rpx;
	}
	
	.savePainter {
		margin-top: 20rpx;
		padding: 0 32rpx 30rpx;
	
		.saveBtn {
			height: 96rpx;
			font-size: 32rpx;
			line-height: 96rpx;
			color: #fff;
			text-align: center;
			background: #FF5238;
			box-shadow: 0px 4rpx 8rpx rgba(255, 82, 56, 0.18);
			border-radius: 48rpx;
		}
	}




</style>
